package org.dubnation.car.domain;

import org.dubnation.base.domain.BaseDomain;


import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhu
 * @since 2023-11-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class CarType extends BaseDomain{

    private static final long serialVersionUID = 1L;

    private Long id;
    private String name;
    private String icon;
    /**
     * 排序用
     */
    private Integer index;
    private String description;
    /**
     * 父类型id
     */
    private Long pid;
    /**
     * 子类型
     */
    private List<CarType> children = new ArrayList<>();

}
